package com.winit.feature.repository;

import com.winit.common.base.BaseRepository;
import com.winit.feature.model.Feature;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * Created by wangjian on 2017/9/27.
 */
@Repository
public interface FeatureRepository extends BaseRepository<Feature,String> {

    @Query("select * from matrix_feature_new where id = ?0 allow filtering")
    Feature findByFeatureId(String featureId);
    @Query("select * from matrix_feature_new where id = ?0 allow filtering")
    Feature findById(String id);
    @Query("select * from matrix_feature_new where id in (?0) allow filtering")
    List<Feature> findByFeatureIds(List<String> ids);
    @Query("select * from matrix_feature_new where sys = ?0 allow filtering")
    List<Feature> findBySys(String sys);
}
